Skip to content

Conversation

@floporsch911
Copy link
Contributor

#199).

We, Florian Chaffard, hereby grant to Hyperglosae maintainers the right to publish our contribution under the terms of any licenses the Free Software Foundation classifies as Free Software Licenses.

@floporsch911 floporsch911 marked this pull request as ready for review June 10, 2025 11:40
@floporsch911 floporsch911 requested a review from benel as a code owner June 10, 2025 11:40
Copy link
Member

@benel benel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for your contribution @floporsch911.

Please consider the following improvements so that your contribution can be integrated.
Regards.


Soit "Víly (Charles Perrault)" le document principal
Et "CC-BY-NC-ND" le code de la licence du document principal
Et "CC-BY-NC-ND" le nom de la licence du document principal
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is not coherent with line 18 of the same file.
Either change both or keep both.

'Restaurer la vapeur': '/6b56ee657c870dfacd34e9ae4e050fcc',
'Vestiges (diagramme de classes)': '/146e6e8442f0405b721b79357d0021e3',
'Víly (Charles Perrault)' : '/420ab198674f11eda3b7a3fdd5ea984f',
'Entretien avec un responsable d\'opération' : '/05b61f5285c711ed97bf6b9b56808c45',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous lines (39) is related to your scenario but not this one.

expect(uris).to.contain.key(title);
cy.get(`a.icon.open[href*="#${uris[title].slice(1)}"]`).click();
}
);
Copy link
Member

@benel benel Jun 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is a misunderstanding about what this step is intended to do. If you look at the existing in Capybara (see
https://github.com/Hypertopic/HyperGlosae/blob/main/features/step_definitions/event.rb#L1-L3), it only clicks the open button, in order to see this document content side by side with the focused one.
This step is a prerequisite to check that both licences are compatible.

throw new Error('Neither img nor span found in .license, or license text does not contain expected value');
}
});
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The existing Capybara code was perhaps too simple but why is this code so complicated?
Please have a look at cy.contains() documentation. You can do a lot, with just one call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants